package com.gdit.zax;


import java.util.Date;

import com.gdit.zax.utils.DateUtil;
import com.gdit.zax.utils.MD5;
import com.gdit.zax.utils.VeriFicUtil;

public class test {
	public static void main(String[] args) throws Exception {
//		System.out.println(MD5.getMD5(MD5.getMD5("0104120738" + MD5.getMD5("123456789a"))));
		System.out.println(DateUtil.toDate("2014-09-30 10:14:48.0").getTime());
		
		
//		Workbook wb = Workbook.getWorkbook(new File("f:\\1.xls"));
//		Sheet[] shyeet = wb.getSheets();
//		for (Sheet sheet : shyeet) {
//			System.out.println(sheet.getName());
//			int rows = sheet.getRows();//行
//			int cols = sheet.getColumns();//列
//			Cell cells[][] = new Cell[rows][cols];
//			for (int i = 0; i < rows; i++) {
//				for (int j = 0; j < cols; j++) {
//					System.out.println("行:" + i + " 列:" + j);
//					try {
//						cells[i][j] = sheet.getCell(j,i);//getCell(列，行)		
//					} catch (Exception e) {
////						System.out.println(e.getMessage());
//					}
//					 
//					 if (cells[i][j]!=null) {
//						 System.out.println(cells[i][j].getContents());
//					 }
//				}
//			}
//		}
		
		
		
		
		
//		System.out.println(EmailUtil.send("179157977@qq.com", "t", "content"));
//		EmailUtil.sendEmail("179157977@qq.com", "su", "bo");
//		Emai2lUtil.javsend();
		
//		 设置发送方的SMTP地址
//        String host = "smtp.qq.com";
//        //user
//        String name = "1002819118";
//        //password
//        String password = "as1002819118";
//         
//        TextMail mail = new TextMail(host,name,password);
//        mail.setFrom("1002819118@qq.com");
//        mail.setTo("179157977@qq.com");
//        mail.setSubject("subject");
//        mail.setText("content");
//         
//        if(mail.send())
//            System.out.println("邮件发送成功");
//        else
//        	System.out.println("邮件发送失败");
		
//		System.out.println(System.currentTimeMillis() + 1000 * 60 * 60 * 24 * (long)1天);
//		http://zuiaixue.jd-app.com/getcollectlist?accesstoken=899489f74a6947ad3e32d960f2df506490e436342d4cb9c1
		System.out.println(VeriFicUtil.getIDVF(2));//e5a883a1f0089ff5c6df4e9f4a3bb0c3
		System.out.println(VeriFicUtil.getVFID("2f6f68106220d9a2449b9b49eead15b2"));
		//2    b44d19f4a909c2732f7f004135b0bb97
		//137  97d595542939f84b884cf93fc9b543c390e436342d4cb9c1

		//http://pingkgs3pc:8080/zuiaixue/delplan?accesstoken=b44d19f4a909c2732f7f004135b0bb97&id=123
		//http://pingkgs3pc:8080/zuiaixue/getallplan?accesstoken=b44d19f4a909c2732f7f004135b0bb97
		//http://pingkgs3pc:8080/zuiaixue/userinfo?accesstoken=c55950142c7996b15725bade15deb34c
		//http://pingkgs3pc:8080/zuiaixue/listmedal?accesstoken=97d595542939f84b884cf93fc9b543c390e436342d4cb9c1
		//http://pingkgs3pc:8080/zuiaixue/findpwdbyemail?username=123&email=179157977@qq.com
		//http://pingkgs3pc:8080/zuiaixue/changepwd?username=123&newpwd=123&changeflag=123.
		//http://pingkgs3pc:8080/zuiaixue/getvideoinfo?videoid=5
		//http://pingkgs3pc:8080/zuiaixue/getvideolist?courseid=1
		//http://pingkgs3pc:8080/zuiaixue/tasktoday?accesstoken=b44d19f4a909c2732f7f004135b0bb97
		//http://pingkgs3pc:8080/zuiaixue/searchcourse?key=1
		//http://pingkgs3pc:8080/zuiaixue/gethotsearch
		//http://pingkgs3pc:8080/zuiaixue/getdownlist?b44d19f4a909c2732f7f004135b0bb97
		//http://pingkgs3pc:8080/zuiaixue/getcomment?id=0
		//http://pingkgs3pc:8080/zuiaixue/checkupdate?system=android&version=1.0
		//http://pingkgs3pc:8080/zuiaixue/getproctoday?accesstoken=97d595542939f84b884cf93fc9b543c390e436342d4cb9c1
		//http://pingkgs3pc:8080/zuiaixue/getschedule?accesstoken=97d595542939f84b884cf93fc9b543c390e436342d4cb9c1
		//http://pingkgs3pc:8080/zuiaixue/getclassinfo?cid=1
		//http://pingkgs3pc:8080/zuiaixue/getallplan?accesstoken=899489f74a6947ad3e32d960f2df506490e436342d4cb9c1
	}

	
	
}